//登录页面的网络请求
import {request} from './request'

//账号密码登录
export function Login(data){
    return request({
        url:'/api/boss/login',
        method:'POST',
        data
    })
}

//获取当前的登录页面信息
export function GetUserInfo(){
    return request({
        url:'/api/boss/me'
    })

}

// 当前用户登录，修改密码
export function Password(params){
    return request({
        url:'/api/boss/password',
        method:'PUT',
        params
    })
}

//刷新token
export const RefreshToken = ()=>{
    return request({
        url:"/api/boss/refresh_token",
        method:'POST'
    })
}